﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ExtJSExtender.Controls
{
    [Serializable]
    public class GridBehaviorState
    {
        /// <summary>
        /// 是否需要重置滚动条。0为需要，此项每次POST都会被置为0
        /// </summary>
        public int NeedResetScroll { get; set; }
        public int ScrollX { get; set; }
        public int ScrollY { get; set; }

        private List<string> allSelectedValues = null;
        /// <summary>
        /// 所有选中项的主键值
        /// </summary>
        public List<string> AllSelectedValues
        {
            get
            {
                if (this.allSelectedValues == null) this.allSelectedValues = new List<string>();
                return this.allSelectedValues;
            }
            set
            {
                this.allSelectedValues = value;
            }
        }
    }
}
